/* ===========================================
    ESTILOS DA PÁGINA DE DETALHES DO PROJETO
    VERSÃO ADAPTADA PARA AGRIFLOWAPI
    =========================================== */

/* Reset e base */
* {
    box-sizing: border-box;
}

/* Breadcrumb melhorado - tema verde para agro */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-nav a {
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 8px;
    border-radius: 4px;
}

.breadcrumb-nav a:hover {
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1);
}

/* Header do Projeto melhorado - tema agro */
.projeto-header {
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 20px;
    border: 2px solid #bbf7d0;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.1);
}

.projeto-categoria-badge {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.categoria-tag {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.status-tag {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-concluido {
    background: #059669;
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.projeto-header h1 {
    color: #1e293b;
    font-size: 3.2em;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #166534, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projeto-subtitle {
    color: #475569;
    font-size: 1.4em;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.projeto-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    color: #64748b;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.meta-item i {
    color: #16a34a;
}

.meta-item strong {
    color: #1e293b;
}

/* Imagem Principal melhorada - tema agro */
.projeto-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 25px 50px rgba(22, 163, 74, 0.2);
    border: 3px solid #bbf7d0;
}

.projeto-hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(22, 163, 74, 0.8), rgba(34, 197, 94, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.projeto-hero-image:hover .image-overlay {
    opacity: 1;
}

.projeto-hero-image:hover img {
    transform: scale(1.1);
}

.overlay-content {
    display: flex;
    gap: 20px;
}

.btn-demo, .btn-github {
    background: white;
    color: #1e293b;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-demo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #16a34a;
    color: white;
}

.btn-github:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #1e293b;
    color: white;
}

/* Seções de Conteúdo - SEM transparência */
.projeto-overview,
.projeto-features,
.projeto-tech-detail,
.projeto-results,
.projeto-challenges,
.projeto-gallery,
.projeto-architecture {
    margin-bottom: 50px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    border: 2px solid #bbf7d0;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.08);
    transition: all 0.3s ease;
}

.projeto-overview:hover,
.projeto-features:hover,
.projeto-tech-detail:hover,
.projeto-results:hover,
.projeto-challenges:hover,
.projeto-gallery:hover,
.projeto-architecture:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.12);
    border-color: #16a34a;
}

.projeto-overview h2,
.projeto-features h2,
.projeto-tech-detail h2,
.projeto-results h2,
.projeto-challenges h2,
.projeto-gallery h2,
.projeto-architecture h2 {
    color: #1e293b;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #16a34a;
    display: flex;
    align-items: center;
    gap: 15px;
}

.projeto-overview h2 i,
.projeto-features h2 i,
.projeto-tech-detail h2 i,
.projeto-results h2 i,
.projeto-challenges h2 i,
.projeto-gallery h2 i,
.projeto-architecture h2 i {
    color: #16a34a;
    font-size: 0.8em;
}

.projeto-overview p,
.projeto-features p,
.projeto-tech-detail p,
.projeto-results p,
.projeto-challenges p,
.projeto-gallery p,
.projeto-architecture p {
    color: #475569;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Features Grid - Cards sólidos com tema agro */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #f0fdf4;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #bbf7d0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: #16a34a;
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.2);
    background: #fefefe;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.feature-item h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 700;
}

.feature-item p {
    color: #64748b;
    line-height: 1.7;
    font-weight: 500;
}

/* Stack Tecnológico melhorado */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tech-category {
    background: #f0fdf4;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #bbf7d0;
    transition: all 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    border-color: #22c55e;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.15);
}

.tech-category h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-category h3 i {
    color: #22c55e;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    background: white;
    color: #1e293b;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #bbf7d0;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: #16a34a;
    color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.2);
}

/* Resultados Grid - Cards sólidos com ícones agro */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.result-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #bbf7d0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.result-card:hover {
    transform: translateY(-10px);
    border-color: #16a34a;
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15);
}

.result-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.result-number {
    font-size: 3em;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.result-label {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
}

.result-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* Desafios e Soluções - Adaptado para módulos */
.challenge-item {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid #bbf7d0;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.08);
    transition: all 0.3s ease;
}

.challenge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.12);
    border-color: #16a34a;
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.challenge-header i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.challenge-item h3 {
    color: #1e293b;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
}

.challenge-content {
    display: grid;
    gap: 20px;
}

.challenge-solution {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
}

.challenge-solution i {
    color: #22c55e;
    font-size: 18px;
    margin-top: 2px;
}

.challenge-solution strong {
    color: #16a34a;
}

.challenge-solution div {
    color: #374151;
    line-height: 1.6;
}

/* Galeria melhorada */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
    border: 2px solid #bbf7d0;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.08);
}

.gallery-item:hover {
    border-color: #16a34a;
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30, 41, 59, 0.95));
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 700;
}

.gallery-overlay p {
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}

/* Arquitetura do Sistema - Cards sólidos */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.arch-layer {
    background: #f0fdf4;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #bbf7d0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.05);
}

.arch-layer:hover {
    transform: translateX(10px);
    border-color: #16a34a;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.1);
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.layer-header i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.arch-layer h3 {
    color: #1e293b;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
}

.arch-components {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.arch-components span {
    background: white;
    color: #1e293b;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #bbf7d0;
    transition: all 0.3s ease;
}

.arch-components span:hover {
    border-color: #16a34a;
    color: #16a34a;
    transform: translateY(-2px);
}

/* Ações do Projeto melhoradas */
.projeto-actions {
    margin: 60px 0;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 20px;
    border: 2px solid #bbf7d0;
}

.actions-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 18px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    min-width: 180px;
    justify-content: center;
}

.action-btn.primary {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.4);
    background: linear-gradient(135deg, #15803d, #16a34a);
}

.action-btn.secondary {
    background: #1e293b;
    color: white;
    border: 2px solid #1e293b;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.2);
}

.action-btn.secondary:hover {
    background: #334155;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 41, 59, 0.3);
}

.action-btn.tertiary {
    background: white;
    color: #16a34a;
    border: 2px solid #16a34a;
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.1);
}

.action-btn.tertiary:hover {
    background: #16a34a;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.3);
}

/* Sidebar Específico - Cards sólidos */
.sidebar-metrics,
.sidebar-tech,
.sidebar-related {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #bbf7d0;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.sidebar-metrics:hover,
.sidebar-tech:hover,
.sidebar-related:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.12);
    border-color: #16a34a;
}

.sidebar-metrics h3,
.sidebar-tech h3,
.sidebar-related h3 {
    color: #1e293b;
    margin-bottom: 25px;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #bbf7d0;
}

.sidebar-metrics h3 i,
.sidebar-tech h3 i,
.sidebar-related h3 i {
    color: #16a34a;
}

/* Métricas Sidebar - Cards sólidos */
.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #bbf7d0;
    position: relative;
    overflow: hidden;
}

.metric-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #16a34a, #22c55e);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateX(10px);
    background: #fefefe;
    border-color: #16a34a;
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.1);
}

.metric-item:hover::before {
    transform: scaleY(1);
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.3);
}

.metric-content strong {
    display: block;
    color: #1e293b;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 5px;
}

.metric-content span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* Tech Detail List - Cards sólidos */
.tech-detail-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #bbf7d0;
    position: relative;
    overflow: hidden;
}

.tech-detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tech-detail-item:hover {
    transform: translateX(10px);
    background: #fefefe;
    border-color: #22c55e;
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.1);
}

.tech-detail-item:hover::before {
    transform: scaleY(1);
}

.tech-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.tech-detail-item h4 {
    color: #1e293b;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 700;
}

.tech-detail-item p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Projetos Relacionados - Cards sólidos */
.related-projects {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.related-item {
    background: #f0fdf4;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #bbf7d0;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.05);
}

.related-item:hover {
    transform: translateY(-8px);
    background: white;
    border-color: #16a34a;
    box-shadow: 0 15px 35px rgba(22, 163, 74, 0.15);
}

.related-item .image {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-item:hover img {
    transform: scale(1.15);
}

.related-content {
    padding: 20px;
}

.related-item h4 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.related-item h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-item:hover h4 a {
    color: #16a34a;
}

.related-content p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.related-tags span {
    background: white;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

/* Animações melhoradas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* Botão com efeito pulse */
.btn-demo {
    animation: pulse 2s infinite;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .projeto-header {
        padding: 30px 25px;
    }
    
    .projeto-header h1 {
        font-size: 2.5em;
    }
    
    .projeto-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .overlay-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .projeto-hero-image img {
        height: 280px;
    }
    
    .architecture-diagram {
        gap: 20px;
    }
    
    .challenge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .challenge-solution {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .projeto-overview,
    .projeto-features,
    .projeto-tech-detail,
    .projeto-results,
    .projeto-challenges,
    .projeto-gallery,
    .projeto-architecture {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .projeto-header {
        padding: 25px 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-number {
        font-size: 2.5em;
    }
    
    .breadcrumb-nav {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .projeto-actions {
        padding: 25px 20px;
    }
    
    .sidebar-metrics,
    .sidebar-tech,
    .sidebar-related {
        padding: 25px 20px;
    }
}

/* Melhorias de Performance e Acessibilidade */
.projeto-hero-image,
.gallery-item,
.feature-item,
.result-card,
.metric-item,
.tech-detail-item,
.related-item,
.challenge-item {
    will-change: transform;
}

/* Focus states para acessibilidade */
.action-btn:focus,
.btn-demo:focus,
.btn-github:focus {
    outline: 3px solid #16a34a;
    outline-offset: 2px;
}

/* Estados de loading para imagens */
img {
    background: #f1f5f9;
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Scroll behavior suave */
html {
    scroll-behavior: smooth;
}

/* Melhorias tipográficas */
body {
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark mode adaptations se necessário */
@media (prefers-color-scheme: dark) {
    .projeto-header {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: #475569;
    }
    
    .projeto-header h1 {
        background: linear-gradient(135deg, #e2e8f0, #16a34a);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .projeto-subtitle {
        color: #cbd5e1;
    }
    
    .meta-item {
        background: #334155;
        border-color: #475569;
        color: #cbd5e1;
    }
}

/* Otimizações específicas para telas grandes */
@media (min-width: 1400px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print styles */
@media print {
    .image-overlay,
    .projeto-actions,
    #footer,
    #nav {
        display: none !important;
    }
    
    .projeto-overview,
    .projeto-features,
    .projeto-tech-detail,
    .projeto-results,
    .projeto-challenges {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }
}

/* Particles sempre no fundo, mas sem bloquear clique */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* Cards, botões e overlays acima dos particles */
.projeto-card,
.projeto-card * {
  position: relative;
  z-index: 10;
}

/* Conteúdo principal acima dos particles */
main, section, .projeto-detalhes {
  position: relative;
  z-index: 5;
}

/* Remove fundo branco do body/sections */
body, main, section {
  background: transparent !important;
}